<?php include load_tpl('header');?>
<p id="breadcrumbs">
    <a href="/">首页</a> <b>»</b> 
    <span>添加新闻</span>
</p>

<div class="box">
	<div class="left"></div>
	<div class="right"></div>
    <div class="heading">
      <h1 style="background-image: url('./images/review.png');">添加新闻</h1>
    </div>
    <div class="content">
	<?php if(isset($msg)){
			echo '<div class="warning"><ul class="error">';
			foreach($msg as $m){
				echo "<li>".$m."</li>";
			}
			echo '</ul></div>';
	}
	?>
      <form action="" method="post" enctype="multipart/form-data" id="form" name="theForm">
            <table class="productform">
              <tr>
			  <tr>
				  <td>分类:</td>
				  <td><select name="news_cate">
				  <?php echo $cate_select;?>
				  </select></td>
				</tr>
                <td><span class="required">*</span>新闻标题:</td>
                <td><input type="text" name="news_title" size="100" value="<?php if(isset($news_info['title'])) echo $news_info['title'];?>" /></td>
              </tr>
			 <tr>
              <td>新闻摘要:</td>
              <td><textarea name="short_desc" cols="80" rows="10"><?php if(isset($news_info['short_desc'])) echo $news_info['short_desc'];?></textarea>
			  </td>
            </tr>
              <tr>
                <td>新闻内容:</td>
                <td><textarea name="description" id="description" cols="120" rows="30"><?php if(isset($news_info['description'])) echo $news_info['description'];?></textarea></td>
              </tr>
			  <tr>
			<td colspan="2" align="center"><a onclick="$('#form').submit();" class="button"><span>添加新闻</span></a><a onclick="" class="button"><span>取消</span></a></td>
			</tr>
			</table>
        </form>
    </div>
</div>
<?php include load_tpl('footer');?>
<script type="text/javascript" charset="utf-8" src="./script/kindeditor/kindeditor.js"></script>
<script type="text/javascript"> 
KE.show({
	id : 'description',
	skinType: 'default',
	items : [
    'fontname', 'fontsize', 'textcolor', 'bgcolor', 'bold', 'italic', 'underline',
    'removeformat', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
    'insertunorderedlist', 'source']
});
</script>
